<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/jsp/admin/includes/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>帐户日志</title>
		<%@ include file="/WEB-INF/view/jsp/admin/includes/meta.jsp"%>
		<link type="text/css" rel="stylesheet" href="${ctx}/admin/css/admin.css" />
		<link href="${ctx}/widgets/extremecomponents/extremecomponents.css"
			type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
		<script type="text/javascript">
		function go(url)
		{
			window.location.href = url;
		}
		function deleData(url)
		{
			if(confirm("确定要删除吗？"))
			{
				window.location.href = url;
			}
		}
		function subForm()
		{
			var objFrom = document.getElementById("searchFrom");
			if(objFrom)
			{
				objFrom.submit();
			}
			 
		}
	</script>

	</head>
	<body>
		<div class="mask">
			<div class="container">
				<h3>
					帐户日志
				</h3>
				<form action="${ctx}/admin/huoshowAccountLog.do" method="post">
					用户名：<input type="text" id="username" name="username" />&nbsp;&nbsp;
					Email:<input type="text" id="email" name="email" />&nbsp;&nbsp;
					火秀号:<input type="text" id="huoshowId" name="huoshowId" />&nbsp;&nbsp;
					<input type="submit" value="查询" />&nbsp;&nbsp;
					<input type="button" onclick="resetPara();" value="清空查询条件"/>
				</form>
				<div id="content">
					<!-- start user list -->
					<ec:table items="page.result" var="huoshowAccountLog"
						rowsDisplayed="10" autoIncludeParameters="true"
						retrieveRowsCallback="limit"
						action="${ctx}/admin/huoshowAccountLog.do">
						<ec:row highlightRow="true">
							<ec:column property="rowcount" cell="rowCount" sortable="false"
								title="序号" width="30" />
							<ec:column property="huoshowAccount.user.username" title="用户名" />
							<ec:column property="huoshowAccount.user.nickName" title="昵称" />
							<ec:column property="operator.username" title="操作员" width="100" />
							<ec:column property="null" title="进/出账" width="50">
								<c:choose>
									<c:when test="${huoshowAccountLog.type=='out'}">
								出账
							</c:when>
									<c:otherwise>
								进账
							</c:otherwise>
								</c:choose>
							</ec:column>
							<ec:column property="action" title="动作" width="100" />
							<ec:column property="beforeBalance" title="操作前余额" width="70" />
							<ec:column property="amount" title="发生额" width="70" />
							<ec:column property="afterBalance" title="操作后余额" width="70" />
							<ec:column property="createdDate" title="发生日期" width="138"
								sortable="true" cell="date" format="yyyy-MM-dd hh:mm:ss" />
						</ec:row>
					</ec:table>
					<!-- end user list -->
				</div>
			</div>
		</div>
	</body>
</html>
<script>
	function resetPara(){
		//alert($("#username").val());
		$("#username").val("");
		$("#email").val("");
		$("#huoshowId").val("");
		$("#username").focus();
	}
</script>